﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KPD_Admin
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {
            this.eMPLOYEESTableAdapter.Fill(this.dataSet1.EMPLOYEES);
            this.wORK_DAYTableAdapter.Fill(this.dataSet1.WORK_DAY);
        }

        private void RefreshButton_Click(object sender, EventArgs e)
        {
            this.eMPLOYEESTableAdapter.Fill(this.dataSet1.EMPLOYEES);
            this.wORK_DAYTableAdapter.Fill(this.dataSet1.WORK_DAY);
        }

        private void employeeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Employees emp = new Employees();
            emp.Show();
        }

        private void workHistoryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            WdHistoryForm historyform = new WdHistoryForm();
            historyform.Show();
        }

        private void addEmployeeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddEmpForm addempform = new AddEmpForm();
            addempform.Show();
        }

        private void jobsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            JobForm jobfrm = new JobForm();
            jobfrm.Show();
        }

        private void проектыToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Projects proj = new Projects();
            proj.Show();
        }
    }
}
